﻿using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace WorldmeServer.Models.用户相关
{
    public class User
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [Key]
        [Comment("用户ID")]
        public string Id { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [Comment("用户名")]
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [JsonIgnore]
        [Comment("密码")]
        public string Password { get; set; }
        /// <summary>
        /// 盐值
        /// </summary>
        [JsonIgnore]
        [Comment("盐值")]
        public string Salt { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        [Comment("邮箱")]
        public string Email { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public DateTime CreateTime { get; set; } = DateTime.Now;

        
    }
}
